<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
    <title>旋转动画</title>
    <style>
        p {
            font: 30px;
            margin: 40px auto;
            font-weight: 500;
            color: #f3626f;
        }
    </style>
    <link rel="stylesheet" href="css/animate.css">
</head>

<body>
    <div id="box" align="center">
        <button v-on:click="show=!show">切换显示</button>
        <transition name="rotate" enter-active-class="animated rotateIn" leave-active-class="animated rotateOut">
            <p v-if="show">锲而不舍</p>
        </transition>
    </div>
    <script>
        new Vue({
            el: '#box',
            data: {
                show: true
            }
        })
    </script>
</body>

</html>